﻿
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	WarehouseCategoryRelationPageData obj = (WarehouseCategoryRelationPageData)context.getValue("WarehouseCategoryRelationPageData");
%>

<!--********************* Part3:JavaScript Code ***************-->
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("仓库编码","WarehouseCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("仓库名称","WarehouseName",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("分类编码","CategoryCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("产品编码","ProductCode",true,true,30,false,0);

g_check_items[g_i++] = new CheckItem("显示顺序","DisplayOrder",false,false,0,true,CHECK_ITEM_TYPE_DOUBLE);

g_check_items[g_i++] = new CheckItem("是否有效","Status",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("创建人序号","CreateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("创建人","CreateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("创建时间","CreateTime",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人序号","LastUpdateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人","LastUpdateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("最后修改时间","LastUpdateTime",true,true,20,false,0);


function doSaveAndNew()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveAndNewWarehouseCategoryRelation");
	frm.submit();
}
function doSave()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveWarehouseCategoryRelation");
	frm.submit();
}
function doCancel()
{
	SetAction("backListWarehouseCategoryRelation");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("仓库产品分类关联表维护")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
	int key_tab = 1 ;
%>


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>仓库编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="WarehouseCode" size=20  value="<%=obj.viewWarehouseCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>仓库名称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="WarehouseName" size=20  value="<%=obj.viewWarehouseName(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>分类编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CategoryCode" size=20  value="<%=obj.viewCategoryCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>产品编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ProductCode" size=20  value="<%=obj.viewProductCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>显示顺序：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="DisplayOrder" size=20  value="<%=obj.viewDisplayOrder(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否有效：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
   		<%=uiCommandTD%>>                     
			<input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
			<input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
			<input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
		</td>
	</tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :chengbiao.he
	FileName  :/system/base/WarehouseCategoryRelationEdit.jsp
-->
